package com.css.fxfzcpxx.modules.questionData.repository;

import com.css.fxfzcpxx.modules.questionData.entity.QuestionData;
import com.css.fxfzcpxx.modules.questionData.entity.UserTestHistory;
import com.css.fxfzcpxx.modules.questionData.entity.UserTsetQuestion;
import com.css.fxfzcpxx.modules.questionData.param.QuestionDataParam;

import java.util.List;
import java.util.Map;

public interface QuestionDataRepository {
    Map<String, Object> getPage(int curPage, int pageSize, QuestionDataParam param);

    void updateById(QuestionData param);

    void delete(List<String> asList);

    QuestionData findById(String id);

    void save(QuestionData param);

    List<QuestionData> queryByIds(List<String> asList);

    void batchSave(List<QuestionData> list);

    List<QuestionData> queryQuestionByTypeId(String typeId, String s);

    void saveUserTestHistory(UserTestHistory userTestHistory);

    void batchSaveUserTestQuestion(List<UserTsetQuestion> userTQList);

    UserTestHistory getMaximumScore(String courseId, String userID);

    Integer testCheck(List<String> titleName);
}
